package com.jt.base.utils;

import com.github.pagehelper.PageInfo;

/**
 * @author longheping
 * @date 2018/7/20 19:45
 */
public class PageUtil {

  public static R wrap(PageInfo p,R r){
    if(p!=null){
      r.put("count",p.getTotal());
      r.put("data", p.getList());
    }
    return r;
  }

}
